Issue #2240951 by katbailey: form_state not passed by reference to optionsFormValidate method of agent class