Make list_secret_keys not bomb on empty keychains (issue #310)