Fix #2560

Originally, the form_open method expected an empty string in
$attributes to set the "method='post'"

I changed this to accept empty arrays and arrays that don't have a
"method" key