Fix NPE on hook page

With version 1.42 of the github-api plugin, a NPE occurs on the hook page. Restarting provides a workaround, but doing so for every pull request update is very tiresome.