Handle case when existing uid is empty string (treat it like nil)
Use nil? || empty? instead of relying on present? from activesupport
Merge from mbrictson:blank-uid
private Attachment#uid? and previous_uid? - a bit better