If process_result attribute is not specified, construct ANDed expression of other attributes

This prevents segfault in case process_result == NULL. Close #3224