evading potential null pointer exception in StringUtils.htmlEntityDecode