Fixes bug that caused auto-beaming to incorrectly group notes if a rest appeared in the group.