st/mesa: fix a crash due to passing a draw vertex shader into the driver