Scripts/Halls of Reflection: Fixed a few possible crashes and cleaned up the code a bit