Bug 859379 - return 404 if document doesnt match revisions. r=groovecoder