Issue #3440424 by alexpott: Inconsistent behaviour with drupalGet() when site is installed in a subdirectory (cherry picked from commit 39d743b8)