Friendlier handling of bad UUID type casts