MqttAgent: Ignore a retained message previously received.

This should fix the problem where MqttAgent creates an event from the
same last message every time it runs if it is retained by the server.