file.accumulate exception fix

Don't iterate NoneType in file.accumulate. Return instead.

Refs #15334