Merge "Handle light sensor NullPointerException."