handle friending while offline (fixes #849)