Added guard so nil bardiscoveries are not stored.