Check for ret['result'] == None to avoid erroneous error logs
Merge pull request #3748 from basepi/fix_logging_issue

Fixes #3742 Check for ret['result'] == None to avoid erroneous error logs