Fix a null access with encryption+UDP

Will fix https://github.com/hoaproject/Socket/issues/9.