Fixed ignore missing attribute/element bug.