Support yard stats for objects with no file property.

Fixes #792