qxl-render: add more sanity checks