[qtwayland] Fix crash on setCursorSurface when the surface is null