Fixes bug: WampHandler failure on invalid JSON.

Uncaught exception on invalid JSON destroys a server.
I am not sure this is the best solution. But it works. And it's better than fail of a server.

Do you have another idea?