Fixed crash bug in the shaderlang test

The shaderlang test crashed every time for me when I executed it. It tried to delete/deconstruct a zero pointer.