Fix assertion failure on too small ROMs.

For example ROMs of size 0, or files that don't exist.