fixes segfault when no process_result is provided redmine core #3224

I suggest this pull request as a fix for #3224