Fixing nil bug in registration controller in case of not adding friends.