Add some logging, is IE not catching TypeError?