xwayland: fix a realloc OOM error case

Found by coverity

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
1 job for wip/coverity-fixes in 2 minutes and 57 seconds (queued for 2 seconds)