Fixing bug where not having headers or footers broke things.