Fix segfault when catalog cannot be reached.