Fixes small bug when deleting _b metabolites

I'm not sure if this function is ever used, but a bug is a bug.

During this loop, model.metabolites gets shorter, so the loop does not complete.