Fix unhandled exception in git eventhandler integration