Fix existence test of index creation migration