Fix issue with site parameter in error summary

It can be an empty dictionary which causes problems
when trying to create the summary.

Fix that by ensuring it's a string.
Merge pull request #4342 from dballesteros7/fix-errorSite-hash

Fix issue with site parameter in error summary