Fix the case of sending credit state back when changing credit when there are no messages in the queue.