jbd: replace potentially false assertion with if block