Index a minimal (pid only) document if the document is prefiltered.
This avoids an server error when saving to solr.
Issue curationexperts/tufts-image-library#174

Code ported from:
https://github.com/TuftsUniversity/tuftsification-hydra/commit/ab4d5acf86991ee3e50414f4b171f156fd668fec