fixes zeromq/jeromq#86

endpoint not assigned and that cause npe