Fixed BasePageChooserPanel.render_js()

Addresses the "ForeignKey null=False" issue; new instances were throwing an exception, which prevented the edit handler from rendering the proper JavaScript in `wagtailadmin/pages/_editor_js.html`.