Check if screen is on when checking if keyguard is showing; prevent unnecessary requests for passwords