Small fixes to the Matrix backfilling history script pt. 1
Tried to run the Matrix backfilling history script against production and ran into these things so far. There will probably be more follow-ups as we go.
Follow-up to !2313 (merged)
Part of #2609 (closed)
Edited by Eric Eastwood