Fix bug in osmclient when invoking refactored get_key_val_from_pkg