r300g: fix possible crash when shader compilation fails