Reorder comparison in isErrorRelatedToComponent to errorType == CellmlElementType::COMPONENT.
Reorder comparison in isErrorRelatedToComponent to errorType == CellmlElementType::COMPONENT.

cellml/libcellml,cellml/libcellml,nickerso/libcellml,hsorby/libcellml,nickerso/libcellml,cellml/libcellml,hsorby/libcellml,nickerso/libcellml,hsorby/libcellml,cellml/libcellml,hsorby/libcellml,nickerso/libcellml