Check window exsists before doing incoming typing notifications

issue #397
Merge branch 'master' into plugins