(#3153) - avoid unnecessary allDocs() call

I noticed that we do _all_docs requests even
when keys=[], which is wasteful.