Check pointer for null before dereferencing
Check pointer for null before dereferencing

Change-Id: Ie7563bf8fb2d627454010de7388d0992e2accf91

randomblame/bootable_recovery,DerTeufel/dualboot_recovery,DerTeufel/dualboot_recovery,Plain-Andy/android_platform_bootable_recovery,76Demented/bootable_recovery-,Plain-Andy/android_platform_bootable_recovery,76Demented/bootable_recovery-,Plain-Andy/android_platform_bootable_recovery,kylinmoddev/android_bootable_recovery,76Demented/bootable_recovery-,DerTeufel/dualboot_recovery,kylinmoddev/android_bootable_recovery,DerTeufel/dualboot_recovery,76Demented/bootable_recovery-,76Demented/bootable_recovery-,randomblame/bootable_recovery,randomblame/bootable_recovery,DerTeufel/dualboot_recovery,InsomniaAOSP/platform_bootable_recovery,InsomniaAOSP/platform_bootable_recovery,randomblame/bootable_recovery,InsomniaAOSP/platform_bootable_recovery,InsomniaAOSP/platform_bootable_recovery,randomblame/bootable_recovery,kylinmoddev/android_bootable_recovery,InsomniaAOSP/platform_bootable_recovery,kylinmoddev/android_bootable_recovery,Plain-Andy/android_platform_bootable_recovery