[FIX] Create new record in form view when dataset index is 0 and has empty ids list.
[FIX] Create new record in form view when dataset index is 0 and has empty ids list.

This fixes problems for wizards and when switching to form view when dataset is empty


akretion/openerp-web,havt/openerp-web,havt/openerp-web,akretion/openerp-web,havt/openerp-web,havt/openerp-web,akretion/openerp-web,havt/openerp-web