WW-4223 Uses safe toString method to avoid exception during generating debug info

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1534977 13f79535-47bb-0310-9956-ffa450edef68