GT changed API again, add check to prevent crash.