Improved logging in WidgetLookup. Fixes #530