The script crashes when the document includes a footer.
The script crashes when the document includes a footer.