Replaced First() by SingleOrDefault(). Reverted new grid testing as this depends on other changes too which can not yet be committed as these have nothing to do with this issue.Related to Issue [MWDAM-1632]
Cleanup the 1D profile implementation:- No need for separate CreateHeadLine method, as the generic method will already create one.Related to Issue [MWDAM-1398]