Fix header and footer not printing inspite of having enough PageMargins

the pull fixes issues with printing headers and footers.

`elementWriter.addFragment()` check the current page available height even when printing headers and footer. This leads to an erratic behavior (the method check is against the available height on the last printed page).

Normally when called with explicit block offsets the method shouldn't check the availableHeight.

this would close issue #81