Switched if order for the IE dispatchEvent compatibility #HOT-62