[DROOLS-82] fix null safe dereferencing when used in a method argument