Enh(Render): Add some error checking to grid rendering