In my case, form_values is undefined, so it throws an error. I'm attaching the patch I created to fix the issue.
Active
Code