make chainit working with new webdriverjs ErrorHandler