fix(ngView): IE8 regression due to expando on non-element nodes

This fixes the "TypeError: Object doesn't support this property or method" error on IE8.

Closes #3971