dir: Return NULL instead of boolean when querying related refs
dir: Return NULL instead of boolean when querying related refs

The related refs are returned as GPtrArray, hence return NULL
instead of FALSE on error paths.

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