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