fixes #1: fix the bug that it will fail if couchdb responses no json data