Resort to window.loader if loader is not found.
Resort to window.loader if loader is not found.

Fixes a script error on some conditions/browsers and in addition, it also makes
sure that we properly get attached to the loader's finish handler.

imps/cncta