Work around a bug introduced by Angular.JS 1.2.16.

https://github.com/angular/angular.js/commit/7e4e696
https://github.com/angular/angular.js/commit/2db66f5