Fix CUID-based fallback logic when retrieving Files for a Series

Many thanks for Gianlorenzo Fagiolo for the bug report and sample files
Merge branch 'master' of github-mwoodbri:mwoodbri/MRIdb