ignore empty messages

fix multiple message sending in firefox