Refs #3454 - Factorize use of execresult in site.st and fusionAgent.st

Refs #3454 - Factorize use of execresult in site.st and fusionAgent.st