Fix / being handled incorrect by referer()

When the referer is `/` Controller::referer() should not be appending the base path as it results in the base path being added twice causing incorrect results in AuthComponent.

Refs #4812