Fix quota bug where it raises exception when resources are deleted

- Added an extra check to make sure that if the delta is negative,
  it should not raise an over quota

fixed bug 1178285

Change-Id: I23cdc7bfa0a58ee87ae085d51814f73bc9790754
Merge "Fix quota bug where it raises exception when resources are deleted"