Fix segfault when vendor string is empty.