Fixed crash if magic database failed to load.