If the socket callback function pointer hasn't been set, we must not attempt to use it. Commit adc88ca2 made it more likely to occur.