Issue #3094525 by mglaman: UiHelperTrait::drupalLogin breaks when user.login or user.logout route paths altered (cherry picked from commit d510989b)