Fix hang with empty timeline