utils/Utilities.js: In function escapeXml only escape if passed argument is of type string