Allow setAppearance to accept a null Appearance parameter without
throwing NPE.