Fix for a server-crashing issue in libnudge.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>