Fix camera crash on devices without camera