Fix a logic error in app domain creation
Fix a logic error in app domain creation

ft-/arribasim-dev-extras,QuillLittlefeather/opensim-1,TomDataworks/opensim,bravelittlescientist/opensim-performance,QuillLittlefeather/opensim-1,bravelittlescientist/opensim-performance,justinccdev/opensim,justinccdev/opensim,rryk/omp-server,rryk/omp-server,ft-/opensim-optimizations-wip-tests,ft-/opensim-optimizations-wip-tests,ft-/arribasim-dev-tests,ft-/arribasim-dev-extras,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,justinccdev/opensim,Michelle-Argus/ArribasimExtract,TomDataworks/opensim,Michelle-Argus/ArribasimExtract,ft-/arribasim-dev-tests,rryk/omp-server,ft-/opensim-optimizations-wip-tests,bravelittlescientist/opensim-performance,ft-/arribasim-dev-extras,rryk/omp-server,rryk/omp-server,rryk/omp-server,RavenB/opensim,ft-/opensim-optimizations-wip,Michelle-Argus/ArribasimExtract,QuillLittlefeather/opensim-1,ft-/opensim-optimizations-wip-tests,BogusCurry/arribasim-dev,TomDataworks/opensim,OpenSimian/opensimulator,justinccdev/opensim,QuillLittlefeather/opensim-1,ft-/opensim-optimizations-wip,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,OpenSimian/opensimulator,bravelittlescientist/opensim-performance,OpenSimian/opensimulator,bravelittlescientist/opensim-performance,BogusCurry/arribasim-dev,M-O-S-E-S/opensim,M-O-S-E-S/opensim,OpenSimian/opensimulator,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/arribasim-dev-tests,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,bravelittlescientist/opensim-performance,ft-/arribasim-dev-tests,M-O-S-E-S/opensim,M-O-S-E-S/opensim,ft-/opensim-optimizations-wip-extras,M-O-S-E-S/opensim,TomDataworks/opensim,ft-/opensim-optimizations-wip-extras,justinccdev/opensim,Michelle-Argus/ArribasimExtract,RavenB/opensim,ft-/arribasim-dev-extras,Michelle-Argus/ArribasimExtract,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,QuillLittlefeather/opensim-1,ft-/opensim-optimizations-wip,RavenB/opensim,Michelle-Argus/ArribasimExtract,BogusCurry/arribasim-dev,RavenB/opensim,M-O-S-E-S/opensim,ft-/arribasim-dev-extras,QuillLittlefeather/opensim-1,QuillLittlefeather/opensim-1,OpenSimian/opensimulator,ft-/arribasim-dev-extras,ft-/opensim-optimizations-wip-extras,TomDataworks/opensim,ft-/arribasim-dev-tests,TomDataworks/opensim,ft-/arribasim-dev-tests,BogusCurry/arribasim-dev,BogusCurry/arribasim-dev,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/opensim-optimizations-wip-tests,BogusCurry/arribasim-dev,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/opensim-optimizations-wip-extras,ft-/opensim-optimizations-wip,RavenB/opensim,OpenSimian/opensimulator,OpenSimian/opensimulator,justinccdev/opensim,RavenB/opensim,ft-/opensim-optimizations-wip-extras,M-O-S-E-S/opensim