mesa/st: Fix NULL access if no fragment shader is bound