Fixing quota check for non-prod/prod job transition.

Bugs closed: AURORA-512

Reviewed at https://reviews.apache.org/r/22334/