check strdup argument against NULL
check strdup argument against NULL

this avoids a crash when the first child node has an empty value
found with AFL
mrjimenez/pupnp,mrjimenez/pupnp,mrjimenez/pupnp,mrjimenez/pupnp