xmlparser free order fix in recipe_handler()

xmlDocPtr should be freed before xmlParserCtxt, not the other way around.