ISIS-637: fixing NPE if in edit mode.