Add try/catch statement on beforeFetch event

this prevent error when you have a fresh session on turbolink but the browser history isn't new