removed debug output and fixed crash when multiple shading engines with no materials were attached to geometry