T736-0 Random error: Cannot set property 'window' on null objecttype