Only retreive signals from XML if the message is the one we intended.

Fixed #1267 in Redmine.