fixes segfault when no process_result is provided redmine core #3224