Fix PageTriage JS dialog parameter

It was using .attr( 'value' ) to retrieve deletion details instead of val().
Also wrap a naked wgFoo variable access with mw.config.get().

Fixes T84996
Fixes T85184

Bug: T84996
Bug: T85184
Change-Id: I707930ae3f61615d79fbd3283269d6a3c1429525