The check fails on some transactions, e.g. the result of a ve.ui.IndentationAction increase if the transactions are squashed.
It is inherently not a complete validity check, and VE code should only create well-formed transactions, so maybe we could remove it.