Issue #815884 by hkramer: Removing empty items from the attributes so the field attributes will apply.