fixed a rare case where an empty  category would receive no refill.
Merge pull request #1885 from kyrahabattoir/VendingAlgorythmFix

fixed a rare case where an empty vendor category would receive no refill.