fix in focusModel when traversing a group with no child groups and only elements