plugins map-object: check for gegl buffers
Fixes #8466 by abandoning the operation when there isn't a related gegl buffer available.
This appears to be a bug in the plugin code (dereferencing an invalid pointer), but the output appears to be correct. I'm not certain why the situation arises.
Also, it might be better to bail out without a warning message. If that would be better, please let me know.