Fix potential tracebacks when _rbenv_exec() returns False

Fixes #5888.
Merge pull request #5893 from terminalmage/issue5888

Fix potential tracebacks when _rbenv_exec() returns False