IPC: fix the connection state checking

Hi,
I added a check of the return value of qb_ipc_us_ready().