net.c: fix possible derefence after null check
net.c: fix possible derefence after null check

Fix possible null pointer dereference in coap_get_context_server_psk().

This issue has been detected by Coverity scan as CID 1495725.

authmillenon/libcoap,authmillenon/libcoap,authmillenon/libcoap