net.c: bugfix: call coap_read_endpoint() only when data available
net.c: bugfix: call coap_read_endpoint() only when data available

coap_read_endpoint() should not be called when no data is available
on the attached endpoint.

authmillenon/libcoap,authmillenon/libcoap,authmillenon/libcoap