fix possible NULL deref on low memory condition in capidrv.c::send_message()