version: don't traceback if no extensions to list (issue4312)

--HG--
branch : stable
extra : amend_source : acea7f08ff16ddea44b38c5ec7cc0c87fb563978