remove NPE by always calling getChannel().getServerAdaptor(). Solves #10

This commit was unintentionally left out from the previous pull request. Should solve #10