Handle case when existing uid is empty string (treat it like nil)
Use nil? || empty? instead of relying on present? from activesupport
to use b64_data method via accessor
private Attachment#uid? and previous_uid? - a bit better