fix npe on angular bootstrapping when $log isn't defined yet