Fix for the return_value() base class method.
The index should be tested against None!
Authored by: bugman 2008-12-01
Parent: [r8087]
Child: [r8089]