Fix errors in IE8 when opening compose page in new window