Only apply :default-layout-params trait if at least one attribute is
present