core: fixed condition for 0 ID or NULL NAME AVP