Fix case where attribute doesn't need to have a value