Fix two null pointer dereferences
When I tried out NeoChat, it kept crashing on me very soon after I started it. With these two small fixes, it seems to be running stable at least for now. I guess I'll see next week if it stays stable even over a longer time, but these two should hopefully be good to go either way.