Check window exsists before doing incoming typing notifications

issue #397