Fix CUID-based fallback logic when retrieve Files associated with a Series

Many thanks for Gianlorenzo Fagiolo for the bug report and sample files