Fixed multiple journal entries being created when adding

multiple attachments to a work package in a single
update

Implements https://www.openproject.org/issues/2715