fix the command pcs_delete exception, access NULL pointer

Exception will throw when use the pcs like:
```shell
$pcs remove /some/file
```
It's caused by accessing res before initialization, fix it.