Execute on_error function parameter when on_empty=true is triggered