Fix NPE when there are no git tags