Widget Bridge: Make the _init method optional. Add tests for both states.

Fixes #9543 - Widget bridge: Make _init() optional.