[FIX] Only apply rules if messageID is available. [#621 state:fixed]