Dialer:Fix crash if device has no proximity sensor.

Credit: koron393

Signed-off-by: dragon <dragon7780@hotmail.nl>