Fix XSLT failure when value of  variable is not nodes