Fix Timeline::updateUsingEditor() as it can be called with editor=NULL

In fact, now it's called with NULL when the program starts
(see commit 517d368f938ca55f915ce9e8ffb57d96b5288b1d).