coverity#704833 Dereference after null check

Change-Id: I307a277ce8f473652afd084eb9848ecb27574714
coverity#735915 Dereference after null check

Change-Id: I6a846af53a2e3492905d9c89e7e55da8778405a5
coverity#1202882 Dereference before null check

Change-Id: Ie61df08c11b687c0b4a3ae212b3f9a6c95171396
coverity#1202823 Dereference null return value

Change-Id: I72d795203aedf34d32012ecee3c8fdfbc2a8a08f
coverity#1202822 Dereference null return value

Change-Id: I8630bfa0c4c557ab14c3b7448b6281072eebec8a