MDL-10504 formslib: make sure id is always the first form element.