ignore undefined values in unique index