[1.7.x] Added missing request parameter to get_current_site().

Backport of d6c9bdd825 from master