coverity#735985 Unchecked dynamic_cast

Change-Id: I1bb293567cf6e6437d1ac1f257b25d7de1d0ac75