Fixed a display blink on DisplayedChildAttribute

Fixed a display blink when calling setDisplayedChild() with the same value.