Fixing NPE with multiple location widgets on a form, and also another
NPE when opening some forms with repeat widgets.