libgimp: bail out early in gimp_image_metadata_save_finish()

if no GimpMetadataSaveFlags are set.