When is `totalDuration` called with an undefined playlist? Should there be a test for that scenario?