Fix track stopping when beatgrid was cleared.
Also fix broken test.