Add a more detailed exception message when a top-level key is missing.