Don't check for redirect if C5_ENVIRONMENT_ONLY

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