[DO NOT REVIEW] Fixes #6635,BZ1114046 - Checking if content view is in environment