Bug 1332794: Use the provided tenant id to get quotas instead of getting from context