fix [sitepage] and [sitepages] not working without HTML headers/footers

This fixes #1808 and is an update to ebf825cd6b91a11675bbaa570d9d418af900cca2,
which did not handle it for the --{header,footer}-{left,center,right} options.