Upgrade get_vocab_id() to handle empty strings.