[sink-input-ext] Free state hook slot only if slot exists.

Fixes assert on module unload.
Merge pull request #14 from jusa/dev

Free state hook slot only if slot exists.