fix(log): prevent logging `undefined` for $log in IE

Closes #1705
Merge branch 'master' of https://github.com/angular/angular.js
componentizd!