Fixed an issue with EditTraineesUI where extra rows were displayed and
attempting to modify such a row would lead to an exception.