IPC: fix the connection state checking
Merge pull request #58 from inouekazu/fix_connection_state_checking

IPC: fix the connection state checking

Make sure the case when qb_ipc_us_ready() returns 0 is handled.