When requesting /{db}/{docid}?rev=X and X doesn't exist 404 should be returned

This is working fo GET requests, not for DELETE requests (in the documentation: http://docs.couchdb.org/en/latest/api/document/common.html#delete--db-docid the rev parameter can be also used with DELETE requests). We need to patch the core to make this to work.