#25983 Added null-check in environment to better support empty engines.
This fixes an issue where it was previously not possible to install apps
into some empty engine config setups.
Merge branch 'master' of ssh://github.com/shotgunsoftware/tk-core