Adds try block to catch WidgetAlreadyRegistered. Needed for debugging
other code