Serialize mod_reports only if we actually have a secondary index queue.
Closes #1947.