[#2238] Fix bug which caused a SIGSEGV when calling remoteAddress() or localAddress()