InCell: prevent NPE if the imaging mode is not specified