I'm trying to stop a table header from appearing over just the footer when the content has run onto two pages. I need to set the PrintOnAllPages property to True on the Header Band to ensure that it appears on following pages in general, however if there are no data rows on the second page and only the footer, the header still appears above it (see screenshot below).

Is there a way to stop this happening? I've attached an example mrt report and a test controller where the dummy data is being generated.
Thanks,
Sam