remove handler for page load event

it is most likely that we don't really need it and it breaks automation under phantomjs.
utils - refactor how undefined is detected

so that it doesn't break automation.

on phantomjs the following:

	Object.prototype.toString.call(undefined);
	Object.prototype.toString.call(null);

both return:

	[object DOMWindow]