Fix the camera script so it doesn't crash at the start under certain conditions.