fixed indentity injection problem when there is no active user in the request context