mesa: refine the error checking vbo_exec_DrawRangeElements()