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

I did a reasonable amount of testing, and it appears to work.