Avoid securityToken exception when no security is set