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.

Have you any other ideas?