Applied bug fix from trunk revision: 1455407
Bug Fix: Added check to avoid NPE if result-to-result is true.
If we set result-to-result true then for some cases actionResult may be empty so it throws an NPE action while executing eca action. Thanks Deepak.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/release10.04@1455411 13f79535-47bb-0310-9956-ffa450edef68