Protect against misconfiguration segfaults.