AnimationComplete: change default to durationDefault fix duration read

Safegurard against NAN values and fix camelcase of duration name

Fixes gh-7114
Fixes gh-7118