Fix for Footer is missing if fisrt page different header/footer is set

Reviewed on:
	https://gerrit.libreoffice.org/7589

Signed-off-by: Luboš Luňák <l.lunak@collabora.com>

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx

Change-Id: I2a2f2abc0dcf5542b7b950f9a232d7155a055fdd