Transformed the routing_exception to string if not None, in order to be able to parse the JSON LOG.