simplifyIfs js optimizer pass
filter out empty blocks in simplifyIfs