Fixed a crash in WithVoxelBarrel

Fixes the problem #6914 revealed by https://github.com/OpenRA/OpenRA/pull/6710.
Ah yes, good point.