doom-modeline-segments.el: Move the definition of custom variables doom-modeline-check-(error|warning|note)-icon after the defintion of the function `doom-modeline-check-text'. This fixes the compilation error:
Symbol's function definition is void: doom-modeline-check-icon.