Make sure Pidgin is running before sending it messages

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>