Selectively add header/footer attributes

Only if a header or footer is defined in Interface Builder, it will add the corresponding layout attributes.