fixing NPE in server shutting down with requests coming to a webapp in a tenant. WSAS-1867