Fix typeahead for Angular 1.3.0-beta.11+

This will fix typeahead for newer Angular related to the $compile/transclude changes in 1.3.0-beta.11.

https://github.com/angular/angular.js/blob/master/CHANGELOG.md#130-beta11-transclusion-deforestation-2014-06-06

Please note that other angular-ui modules might be affected.