Fixed possible crash in p3GRouter by checking return value of dynamic_cast.
Authored by: thunder2 2015-07-12
Parent: [r8597]
Child: [r8599]