Fix for unfriending not working properly (due to an undefined variable).

Spotted by MediaWiki.org user Krusher.

Change-Id: I66ff99b2a4a8ca7547012ab7b7e079db1268caad