fix https://github.com/remotestorage/remotestorage.js/pull/595#discussion_r10797401
fix https://github.com/remotestorage/remotestorage.js/pull/595#discussion_r10813546