Fix bug which prevents report being rendered.
Fix bug which prevents report being rendered.

I suspect this is a regression, but I'm not sure as of when!

SoftwareDefinedBuildings/smap,SoftwareDefinedBuildings/smap,SoftwareDefinedBuildings/smap,SoftwareDefinedBuildings/smap,jf87/smap,SoftwareDefinedBuildings/smap,jf87/smap,jf87/smap,SoftwareDefinedBuildings/smap,jf87/smap,jf87/smap,jf87/smap