no way to pass a FID here, this is the most foolproof way I can think to catch this should it happen
Merge pull request #6575 from openscholar/6571

Prevent infinite loop when file embeds itself