fix NPE with non created selectionkey"