Add null guard
Add Pane::onWillDestroyItem