Fix checking if proximity sensor is available