Merge pull request #795 from Eclarian/form-open-attr-bug

Make form open properly when empty array of parameters is passed