Fix issue where location is undefined for User in find_only_environment of the system api. Also remove un-needed logic in find_only_environment and move remaining logic into find_environment_and_content_view.
Related issues
Bug #7045: fix location undefined for user in find_only_environment
Fixes #7045 - fix location undefined for user
Fix issue where location is undefined for User in find_only_environment
of the system api. Also remove un-needed logic in find_only_environment
and move remaining logic into find_environment_and_content_view.