[ticket/12375] Fix broken attachment deletion.

https://tracker.phpbb.com/browse/PHPBB3-12375