Handle null hasMany relations in _joinedResultsToJSON