Error when saving a hashID to a UID

From #4094. 

If the uid has a HUID set but not a hashID, the update function would bail out early. This makes sure the UID has no hashID at all before updating.