Changes in getLockScreenStatus Method for Checking Null Pointer