fixbug

when receive a event like Issue events or Merge request events
can’t read lastCommit will lead to a crash