Fix X errors when setting the background if the background fails to load.