Fixed invalid error for read in case if there is no state

dnet_mix_states sometimes returnes 0 as result, which is invalid
Added reconnection logic debug

Conflicts:
	library/dnet_common.c
v2.24.13.20