fix which data get returned if form error
Merge branch 'hotfix/fix_ajax_page_edit' into 2.5