[Xbee_API] Fixes status check, gave an error on success.(cherry picked from commit 57e1b70a740cc1a1bbd1d228be27f464cbfcae8c)
[comm] Adds some error check(cherry picked from commit 0c0b53732ecb4aeadc9191c73f92401c7b7355b1)