DEV: Don't check the `defaultState` every time a widget is rendered (PR #14285)

This only happens in development mode but still ends up calling the method unnecessarily.

GitHub