* fixed typo "perfdata"
 * return_code can be 0, so specifically check for None
Merge pull request #823 from praddy/master

Fixing trigger_functions.py's set_value function