fix web administration console message truncate bug APLO-362

https://issues.apache.org/jira/browse/APLO-362

The fix is in the lines 765 - 769, No idea why the diff is so big.