Added error checking to shader loading