Fix exception when <body> is missing.