encoding: Fix bug in TLV encodeKeyLocator: Need to check for KeyLocatorType.NONE, not null.