Add a safe assert to warn if resources are returned from a storage with a broken filename
The filename must be relative and not contain the path.