files: Avoid crash if `fileinfo` extension missing

Fixes #1427