refactor($parse): apply #10137 fix only when CSP disabled