Avoid potential errors when reading a shader