should remove onreadystatechange when it is called with readyState=4 to ignore multiple calls. #5426