[ticket/12639] Delete entry in admin-log leads to mysql-error

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