Avoid segfaults when parsing configuration