Fixes #369, incorrect type check in _matches
"is Text" didn't account for other node types, such as comments
https://github.com/dart-lang/web-ui/issues/369

Review URL: https://chromiumcodereview.appspot.com//12377069