Fix null pointer on decrementMessageCountInSlotAndCheckToResend for topi...

...cs.