fix crash when body content empty (IE new tab)