Fixed a regression that prevented successful migration of legacy Attachments