[Battery Monitor] Fix toolTipMainText when plugged in

Authored by broulik on May 12 2020, 1:30 PM.

Description

[Battery Monitor] Fix toolTipMainText when plugged in

It only had a return value for "NoCharge" since the else case was only for not plugged in, resulting in it effectively returning undefined,
throwing during assignment "cannot assign [undefined] to string" and leaving whatever text happened to be shown last.

BUG: 420920

Differential Revision: https://phabricator.kde.org/D29633