Fix a crash when checking compatibilities of segment files.