Better RenderBuffer tests
Better handling of null values in RenderBuffer

Fixes #2019