Fixed new child window scenario (when opening new window in IE8-10 and applyMedia function invokded clientWidth is 0 and doc.body is undefined)