Assert leaf page JSON size.

Assert a leaf page's JSON size instead of checking it in an `if`
statement.