Provide better fallback mechanisms for Formatting.getContentSize

getContentSize will now always return a valid page size, falling back
to it's own hardcoded format if no valid one is found for the document