updated the XHtmlView to handle null result