get-props: handle None sha1

sha1 can be None when repository has no tags/branches
and tags/branches directory listing is requested