Fix regression in NestedBlocksCheck