fix error checking around UID
Merge pull request #516 from dimagi/fix-fixtures-UID

fix error checking around UID