Revert "Issue #2503981 by eiriksm: Move checkEmptyRegions to named function and before first use (block.js)" This reverts commit 1426e33f.