efi_loader: avoid NULL dereference in efi_get_memory_map()