Fixes the NPE when a camera is not selected.