Fixing Application Null Reference in XpandSecurityModule.cs

When updating the module in VS, the Application is null and this causes a null reference. I just added a check for if (Application != null)