Fix BadDrawable crash that occurs when opening object settings dialog