Fix crash toggling trackhead toggle buttons with no project.