auth: proper fixup for optional method parameter in pv_www_authenticate()

- reported by Muhammad Shahzad

(cherry picked from commit dd00819f7cca976e699a20960956abff760df957)