Added nullchecks to watermass in render.