vrend: Only try accessing shader that are available
Clean up the code a bit and only try to read the primitive type for point mode if the prev shader really exists.
This fixes a VM crash when running the GLES 3.1 cts.
Signed-off-by: Gert Wollny gert.wollny@collabora.com