Removes \end{document} at end of section