use a uuid if present (bug 944548)

Better suggestions? But I don't think id will work because of this and https://bugzilla.mozilla.org/show_bug.cgi?id=942222#c3.