[#2065] Fix NPE in AbstractOioByteChannel during write to the socket
Merge remote-tracking branch: upstream/master