app: add gimp_pdb_image_get_guide() and use it in the guide PDB wrappers

It returns a proper error message if a guide ID doesn't exist.