Fixed a bug causing issues with editing PDF attachments when a record has multiple attachments.