DelegateToWidget will now be run even for parent states for extending
states (#14059)

Updated the code to encompass Leif's suggestion.

Change-Id: I70c0a4a93b9fe9ee8b2c458d666a1fec791f20b4