Changed the handling of a lacking foreign key in abridged metadata
fetching to avoid null pointer exception