[haptics] Emit state changed signal when stopped

This commit ensures that the stateChanged() signal of the custom
effect is emitted when it goes from the playing to the stopped state.