Fixed an erroneous usage of assert that was causing issues in the built version of this sim.