[#1265] Keep visibility value on form errors

The wrong value was checked to choose the selected option.
Merge pull request #1265 from okfn/1265-visibility-field-errors

Visibility field value not kept if there are errors on the form