text-input: fix releasing destroy handlers
Created by: dcz-purism
It was possible for listeners on text-input objects to be still attached to signals even after the objects were gone, causing crashes depending on the order objects were destroyed. Not after this patch.