Do not call previous handler if it is not set

issue #40