avdevice/xcbgrab: check xcb_query_pointer_reply_t pointer before use