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

Closes #1705