backport from trunk (rev #9838):
- fixed crash in MI command "list_tcp_conns" when TCP support is compiled in but disabled.
  Reported by Ovidiu Sas.
  Closes bug #3606141