wayland: Handle null surfaces in Transaction::commit()
A transaction entry can contain a null pointer in the following case:
- tree: parent <- first subsurface <- second subsurface
- commit the second subsurface
- commit the first subsurface
- destroy the second subsurface
- commit the parent surface
If it happens, skip setting up transaction graph edges.
SENTRY: KWIN-84Q