gbm_dmabuf: Fix crash if gbm_bo_create fails
And perform proper cleanup if eglCreateImageKHR fails.
Previously, this crashed when used nested kwin and triggering a screencast:
dbus-run-session kwin_wayland --wayland-display $WAYLAND_DISPLAY --exit-with-session="plasmoidviewer -a org.kde.plasma.taskmanager"