added illegal argument check for @InheritPageLayout