Fix for sloppy Haste.Foreign imports throwing exceptions in the RTS.