htmlform: Use `::isValidRange()` instead of deprecated `::isValidBlock()`