main: Allow ctx == NULL in _mesa_validate_shader_target().