clients/simple-dmabuf-egl: Properly check for error in gbm_bo_get_handle_for_plane

gbm_bo_get_handle_for_plane returns handle.s32 == -1 on error, at least
for the Mesa dri implementation.

Reported-by: Marius Vlad <marius.vlad@collabora.com>
Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
2 jobs for master in 5 minutes and 35 seconds
Status Job ID Name Coverage
  Build
passed #200245
build-native-autotools

00:05:35

passed #200246
build-native-meson

00:03:33