fixes #4939 (cherry picked from commit 4d0e42787a4fed81fd0ace1337ffca6ca42dcf96)
Icinga\Web\Hook\TicketHook