fix for single item lists of patients/staff when editing existing (incorrect null check)