Fix crash in TimeEdit.cpp.
Show generic trackname if there is none.
Also refactor some code in that area.