Inline widget chooser was allowing widgets to be added

I notice that the widget chooser was able to add widgets. I have added some JS that overrides the core functionality but won't affect actual core files.