Fix non-determanistic unique constraint mapping. Refs #2092.