WW-4064 Reverts changes introduced by WW-3698 to avoid class cast exception

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