[wayland] - fix previews crash
under Wayland in order to fix a crash that was appearing after a while when the user was using previews
BUG: 392865