Fix removing attachments from the list with database_attachments plugin