Fixed scoping issue with parameters variable in signal_received

Sending a signal with input to a running workflow was causing the workflow to fail. I traced the issue down to a variable that wasn't scoped correctly in the signal_received method of the WorkflowDefinition class. I've included a small patch to resolve the issue.