Fixing ie8 'Uncaught TypeError'

I occasionally get the following error in IE8.

> Uncaught TypeError: Cannot set property 'w' of undefined: line #198

Fixed by adding a condition to function new_handler.