Fixing place, which affected email tests for randoming depending on url (cherry picked from commit 242cb10)