TW-34917 Incorrect handling of 0 quota in SharedResources
(cherry picked from commit a49d6fc)