json: Add guard in create_keylist_patterns
* src/gpgme-json.c (create_keylist_patterns): Guard against a string ending with a linbreak.