Fix editing a related record on portal objects if a count of related records is 1