Fixed Applicaiton Null Reference in XpandSecurityModule.cs