MessageModel: use find_if instead of manual for loop.
This allows reusing the find_if (with a helper method) if needed later.