fix crash when getting undefined agent