net: ehea: avoid null pointer dereference