I suggest you find out, then, since it's a pretty fundamental problem and pointless trying to look for it in the wrong place. How about just printing a message to the serial port, or toggling an LED state, each time a message is received? It would be obvious then what sort of problem we're chasing.
I can't tell what that snippet of code does in isolation.