Better handling of null doc ids

A null doc id causes fabric to throw an erlang error, this needs to be caught and handled in
all doc calls. It returns error not_found to agree with couchdb.

BugzID: 17496