refactor($templateRequest): simplify filtering out of transform functions
refactor($templateRequest): simplify filtering out of transform functions

Closes #10264

ggershoni/angular.js,ggershoni/angular.js,ggershoni/angular.js,ggershoni/angular.js