Base: Improve support for storage wrapper

- Fix bug for AJAX requests on FirefoxOS