Not happy with the approach, as it adds to nested_id_hack_discard_pointers(), but at least it fixes a crash.