Fixing bug in result() function

Currently it causes the result(this, 'fields') call to return 'fields' if the fields property is not a function.
Merge pull request #14 from smvilar/patch-1

Fixing bug in result() function