Fixed issue #7820: When exporting statistics second page of PDF is always blank