qxl-render: add sanity check