Functions to know when a movement is ended
Add a useless action if there is nothing to display

Apparently a task cannot be empty. So display task cannot be empty, even
if there is nothing to display.