[Libguestfs] [PATCH] diff: avoid potential null pointer dereference on error