Fixed searching by sample name. Refs #8401.