Fixed a possible NPE

At the accept operation the "accepted channel" was being configured before the null check which could of caused a NPE if serverChannel.accept() returned null.