animation: fix crash when widget is gone. Closes #2458, #2561, #2676