Don't lose frame's background color when setting foreground (Bug#19802)