Fix segfault when provided slugs which cannot be resolved