Fixed output for the case no <body> or <head> tag can be found