Fixed a crash bug with empty HEXM files.