lacp: coverity fix on null pointer dereference