Don't check for redirect if C5_ENVIRONMENT_ONLY

When `C5_ENVIRONMENT_ONLY` is set to true, concrete5 should not sanitize the current URL.