Do not save empty metadata elements during object creation; closes #896