Fixed issue #1130: SerializerMethodField now must receive and object or return None

Try to fix the #1130 issue.