catch empty commit id from github