[#2065] Fix NPE in AbstractOioByteChannel during write to the socket