coverity#735668 Dereference after null check

Change-Id: Ie7fbc0508ab30c35c52508869367f553b75553e0
coverity#705886 Dereference before null check

Change-Id: I707dcfb324760a7058cb0abcb2eca7819e0568e4
coverity#705908 Dereference before null check

Change-Id: Ieec81451bf486f728c0867c8a68dc99e98e62192