Don't crash when passed a null client id

Sometimes a client can get confused, and start sending messages with
null client ids. This just avoids crashing when that happens.