[PATCH 6.7 367/641] drm/amdkfd: Confirm list is non-empty before utilizing list_first_entry in kfd_topology.c