Update ui-bootstrap-tpls.js

Fix to issue https://github.com/angular-ui/bootstrap/issues/2785.