Fixed a crash in WithVoxelBarrel

Fixes the problem #6914 revealed by https://github.com/OpenRA/OpenRA/pull/6710.