avoid duration=0 animations crash the app, added test for it

fix: #1547