We need to backport https://github.com/angular/angular.js/pull/11405 to 1.3.x
We need to backport #11405 to 1.3.x