Added guard for no camera