Refactor: libcrmcommon: Apply a couple small fixes to pacemakerd IPC.
- Change the crm_debug message when sending a request fails. It could be trying to send something other than a ping.
- Don't overwrite the error code when sending a request fails.
- If api is NULL, return a positive error code.