Fix segfault if invalid IFF file is given