Check for existence of the "sys_dist" ets table

To avoid false error log events for a non-distributed node, it is
necessary to check the existence of the "sys_dist" ets table before
calling tab2list.