Return correct uuid if file is persisted in cookie

When getting uuid of a file, that was previously persisted in the cookie, return the correct uuid.