Fix exception when standing up. Fixes Mantis #3170
Fix exception when standing up.
Fixes Mantis #3170


ft-/opensim-optimizations-wip-extras,zekizeki/agentservice,cdbean/CySim,AlexRa/opensim-mods-Alex,ft-/opensim-optimizations-wip-tests,ft-/arribasim-dev-tests,intari/OpenSimMirror,BogusCurry/arribasim-dev,TomDataworks/opensim,rryk/omp-server,bravelittlescientist/opensim-performance,ft-/opensim-optimizations-wip-tests,zekizeki/agentservice,ft-/opensim-optimizations-wip-extras,zekizeki/agentservice,BogusCurry/arribasim-dev,ft-/opensim-optimizations-wip-tests,justinccdev/opensim,cdbean/CySim,rryk/omp-server,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,N3X15/VoxelSim,M-O-S-E-S/opensim,M-O-S-E-S/opensim,OpenSimian/opensimulator,AlphaStaxLLC/taiga,RavenB/opensim,ft-/opensim-optimizations-wip-extras,M-O-S-E-S/opensim,zekizeki/agentservice,AlphaStaxLLC/taiga,N3X15/VoxelSim,QuillLittlefeather/opensim-1,BogusCurry/arribasim-dev,N3X15/VoxelSim,cdbean/CySim,allquixotic/opensim-autobackup,AlexRa/opensim-mods-Alex,ft-/arribasim-dev-extras,OpenSimian/opensimulator,RavenB/opensim,TomDataworks/opensim,ft-/arribasim-dev-tests,bravelittlescientist/opensim-performance,intari/OpenSimMirror,AlphaStaxLLC/taiga,rryk/omp-server,N3X15/VoxelSim,TechplexEngineer/Aurora-Sim,QuillLittlefeather/opensim-1,justinccdev/opensim,intari/OpenSimMirror,QuillLittlefeather/opensim-1,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/arribasim-dev-extras,allquixotic/opensim-autobackup,RavenB/opensim,Michelle-Argus/ArribasimExtract,intari/OpenSimMirror,TomDataworks/opensim,Michelle-Argus/ArribasimExtract,allquixotic/opensim-autobackup,BogusCurry/arribasim-dev,QuillLittlefeather/opensim-1,ft-/opensim-optimizations-wip,zekizeki/agentservice,AlphaStaxLLC/taiga,N3X15/VoxelSim,justinccdev/opensim,rryk/omp-server,TechplexEngineer/Aurora-Sim,OpenSimian/opensimulator,OpenSimian/opensimulator,ft-/arribasim-dev-extras,justinccdev/opensim,Michelle-Argus/ArribasimExtract,intari/OpenSimMirror,QuillLittlefeather/opensim-1,M-O-S-E-S/opensim,justinccdev/opensim,ft-/opensim-optimizations-wip,AlphaStaxLLC/taiga,bravelittlescientist/opensim-performance,ft-/opensim-optimizations-wip-tests,AlphaStaxLLC/taiga,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,allquixotic/opensim-autobackup,intari/OpenSimMirror,M-O-S-E-S/opensim,ft-/opensim-optimizations-wip,ft-/opensim-optimizations-wip-extras,allquixotic/opensim-autobackup,AlphaStaxLLC/taiga,rryk/omp-server,AlexRa/opensim-mods-Alex,ft-/arribasim-dev-extras,OpenSimian/opensimulator,ft-/arribasim-dev-tests,allquixotic/opensim-autobackup,justinccdev/opensim,N3X15/VoxelSim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,AlexRa/opensim-mods-Alex,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,M-O-S-E-S/opensim,ft-/arribasim-dev-tests,bravelittlescientist/opensim-performance,N3X15/VoxelSim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,Michelle-Argus/ArribasimExtract,ft-/opensim-optimizations-wip-extras,RavenB/opensim,ft-/opensim-optimizations-wip,QuillLittlefeather/opensim-1,TomDataworks/opensim,RavenB/opensim,bravelittlescientist/opensim-performance,ft-/arribasim-dev-extras,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,BogusCurry/arribasim-dev,ft-/arribasim-dev-tests,zekizeki/agentservice,AlphaStaxLLC/taiga,M-O-S-E-S/opensim,BogusCurry/arribasim-dev,AlexRa/opensim-mods-Alex,OpenSimian/opensimulator,TomDataworks/opensim,rryk/omp-server,cdbean/CySim,TechplexEngineer/Aurora-Sim,TomDataworks/opensim,RavenB/opensim,OpenSimian/opensimulator,N3X15/VoxelSim,cdbean/CySim,Michelle-Argus/ArribasimExtract,bravelittlescientist/opensim-performance,ft-/arribasim-dev-tests,cdbean/CySim,TechplexEngineer/Aurora-Sim,ft-/arribasim-dev-extras,RavenB/opensim,Michelle-Argus/ArribasimExtract,ft-/opensim-optimizations-wip-tests,QuillLittlefeather/opensim-1,AlexRa/opensim-mods-Alex