Fixing bug in result() function

Currently it causes the result(this, 'fields') call to return 'fields' if the fields property is not a function.