Fix a possible NULL-crash when searching for a world database