Bugfix: double notifications delivered.

Fixed a bug where the callback is called before the pomodoro change its
state, causing the "change of state" signals to be emitted.