Fix logging of errors in _all_docs open_doc calls

Our exception handling accidentally captured the successful return
value. Using try/of/catch we can exit from the of clause without
catching.

BugzId: 26162
Merge pull request #138 from cloudant/26162-fix-all-docs-error-logging

Fix logging of errors in _all_docs open_doc calls