[bug fixing] PTSDK-1434

fix hasService() type checking error