Don't check for redirect if C5_ENVIRONMENT_ONLY

When C5_ENVIRONMENT_ONLY is set to true, the concrete5 should sanitize the
current URL.
Merge pull request #1558 from mlocati/avoid-redirect-check-when-c5_environment_only

Don't check for redirect if C5_ENVIRONMENT_ONLY