flatpak_dir_find_local_related_for_metadata: Skip invalid branch
flatpak_dir_find_local_related_for_metadata: Skip invalid branch

Fixes #4234

flatpak/flatpak,flatpak/flatpak,flatpak/flatpak,flatpak/flatpak,flatpak/flatpak