Turns out those null layouts are necessary for xml files.