Fixed database issue when friends not found.