Fix traceback in rbenv.versions

52ec9cd did not fix the issue. This should take care of it.
Merge pull request #5900 from terminalmage/issue5888

Fix traceback in rbenv.versions