using statusText or status when responseText is empty in onreadystatechange