Check readyState before sending