don't reference eramdisk if it's NULL