[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.
Merge pull request #6 from chriadam/emitstatechanged

[haptics] Emit state changed signal when stopped