jbd2: replace potentially false assertion with if block