Added check for when commitToTagMap does not contain the commit id