fixed bugs related to render of friendship json when it is null