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

Strange things are coming from github...