Fix crash when freed friend gets inactivated