Fix traceback in gem.sources_list

ccefbd5 did not fix the problem. This should take care of it.