get-template-library: fix --pull-request for repository with a master branch
when using tag rather than HEAD