Fixes an XSS issue and removes the stacktrace to avoid leaking server information when an unrecoverable error occurs

Description
-----------
Fixes an XSS issue and removes the stacktrace to avoid leaking server information when an unrecoverable error occurs

Impacts
-------
Impacts any part of the portal that would expect multiple parameters (Non seen).

Delete branch after merge
-------------------------
NO