Fixed error in IE7 referring to undefined.log.
Fixed referring to window.log even when module was loaded via AMD.