(#833) ensure that attachments with data do not have stub flag