Fix bug where removing attachment in event dialog wasn't possible after upload (#4288)
When redundant_attachments or database_attachments plugin was enabled
the ID of uploaded file contained ":" character which was invalid in HTML
and css selector didn't work.