Use the correct panel prefixes from the theme
Since Plasma 5.22, Plasma panels fail to use the correct edge prefix. This change makes it so the prefix is actually assigned to something at the end of the switch case.
Tested locally using a theme that has prefixes for all edges.