Added a check on the key we get back from the getSelectionKey() : if
it's not valid, we get out of the method without trying to set a
interest flag on it.