fix pid is not a number bug

执行`tianma-beta stop`时发现抛出这样的错误：

```
pid must be a number
```