Correctly error on malformed all_docs requests