[Core] Fixed ProjectFile.ResourceId logic