Potential fix for a crash on HG OpenSim teleports by Liru