[wayland_common] Fix checking of the QT_WAYLAND_RESIZE_AFTER_SWAP env var