coverity#735798 Dereference after null check

Change-Id: I57accad3d086f0c4ac4592b1f4dbd9852596196b
coverity#735806 Dereference after null check

Change-Id: Ie7a05e694585bcc624bd69b4400d84a05fbc48fb
coverity#735910 Dereference after null check

Change-Id: Ifc85be1fc2c0e6d6764c0f1c4a237623d6d13a7b
coverity#735441 Logically dead code

Change-Id: I790904fb030d2bfc96cd967b2b4b449e62f8c536
coverity#735442 Logically dead code

Change-Id: I8e182a18e70f230e67f2f452bbfca442e5585212
coverity#735444 Logically dead code

Change-Id: I32b6475812be6dfd9912f7fc6646b349cdbfbbe1
coverity#1209548 Unchecked dynamic_cast

Change-Id: I0adb2380d6804fef43812be3b9a6f32706fd7a4a
commit id with ccc in it breaks regression test

Change-Id: I1a222fdd5e837a4d0071f8b4d03b80c1d104f235