Catch the NumberFormatException and re-throw is as an XMLRPCException.

Fix #1189