Handle error when destroying a non-initialized UI element