encoding: Fix bug in encodeSelectors: Need to check for getKeyLocator().getType() != KeyLocatorType.NONE instead of null.