LPS-46756 fix possible infinite loop in asset publisher