Prevent crash when return value from tested function is undefined.
Merge pull request #9 from threehams/master

Prevent crash when return value from tested function is undefined.