coverity#735851 Dereference after null check

Change-Id: I8f6e5803efe0db06d081903b9b852d1a1f881f7b
coverity#1078471 Unchecked return value

Change-Id: I2eb340eddf77ef5f007b5588e78d2b03bb5eb059
coverity#1242426 Dereference after null check

Change-Id: I59c96846aa5bf4780e4c5bfb0b71242e3b928976