Fix XHR in Safari

codebird-js was silently failing in Safari. `typeof window.XMLHttpRequest` is apparently `"object"` in Safari, which caused the returned XHR object to be null and silently ended _callApi.