Prevent crash when foreign queries not records
Merge branch 'develop' of https://github.com/CenterForOpenScience/modular-odm into develop