Make resolveUri and resolvePath behavior consistent when there is no file
Don't try to generate the file's URL if there is no file in the VichFileType