Checking resource.duration != initial in totalDuration sum

When a resource is not propperly loaded, it keeps its original value '-', so in the addition operation for totalDuration javascript treats it as a string and give as a result 'time1-time2-time3-...' which it shouldn't.

You can try this error using as url 'http://www.marca.com/'