AutoarExtract: Fix segmentation fault if source is memory