ISIS-320: factoring out error stack trace component...

... with view to making available on sign-on page also.
ISIS-353: further fix (one liner)