Fixed support for Hapi 4.0.1

In Hapi 4.0.1 route.pathParams and route.queryParams are Joi objects. Added a check for that. Also, check for null _settings in params when looking for className.