fix raise exception if platform package ctrl could not be found