Fix NRE while rendering "null" models as XHTML