fix($compile): Bugfix for IE8

This solves the bug that angular-ui bootstrap modal is not
showing up in IE8