fix(dialog): IE8 fix to not set data() against text nodes.

I didn't see this fix in https://github.com/angular-ui/bootstrap/pull/249 . This should be the only IE8 issue in `dialog`, anyway.