boxdumper: Fix a crash when failed to open a file.