Fixed infinite loop in form_layout.js when finding missing name indexes