Fix isValidEncryptionKeyPacket function: access key flags by index

Fixes https://github.com/openpgpjs/openpgpjs/issues/164