Merge "Layout may be called with invalid print attributes." into klp-dev