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
Merge pull request #4987 from cakephp/issue-4812

Fix / being handled incorrect by referer()