Properly check if the custom header/background has been initialized. fixes #23170. see #22246.