avoid setting b->count to negative/null

hopefully really fixing the "% 0" bug

CID:28217