The logic currently sorts roms based on an index that isn't present when there is only one rom page. This means it would fail to export Tetris for example. I made this quick fix to work around it:
def rom_sorter(e):
if(e.endswith("rom")):
return 0
return int(e[3:])