webui: Fix non-working WPS switch (backport from GPL 2044)