Fixes for M21a Monopole Simulation (ATLASSIM-5960)
Manual sweep of !59219 (merged) (and !58728 (merged)) from master into 22.0.
These changes are required to allow Monopole Simulation to run without crashing. This is required so that samples needed for Run3 trigger tuning can be produced before the MC23 Full Chain is validated. Fixes ATLASSIM-5960.