routes/hook: wrap JSON.parse in try/catch

Stranges things are coming from github...