Return error when open_revs=all and document doesn't exist

COUCHDB-2517
Re-indent to reflect recent addtion of a case branch

COUCHDB-2517
Merge branch '2517-open_revs=all-function_clause'

Fixes #15