Fix for getElementByTagName invoked on Text node.

This is a fixed for the problem with the find method when it tries to invoke getElementsByTagName on a TextNode causing the following error:
<code>TypeError: Object #<Text> has no method 'getElementsByTagName'</code>

Bug report:
https://github.com/angular/angular.js/issues/4120