Fix "ITEM_FLAG_SELECTONEMPTY" flag.