Don't dereference null pointer if gadgets can't be allocated.