Added HTML end tag checks in the inBody phase.