Thanks for finding this, looks like a copy&paste issue, so I think the condition should not be removed but fixed -- instead of:
``` if(subs->extra_headers && hentity->extra_headers->s) ```
There should be:
``` if(subs->extra_headers && subst->extra_headers->s) ```