new_wim_struct(): Don't dereference NULL in out-of-memory case