added checks, grid colors

* added couple of tests to avoid crashes
* changed scene_viewer.material's shaders so grid have colors