style-police: fixed badly readable code in ProcessMessage()

- I introduced the problem and fixed it with better readable code
Merge pull request #3064 from Diapolo/style

style-police: fixed badly readable code in ProcessMessage()