Writes the end tag for the current element to the document. An Exception is thrown if there is no element to end.