fix a few small crashes caused by copypasta
fix a few small crashes caused by copypasta

sammerry/pykafka,jofusa/pykafka,benauthor/pykafka,thedrow/samsa,vortec/pykafka,wikimedia/operations-debs-python-pykafka,fortime/pykafka,yungchin/pykafka,sammerry/pykafka,tempbottle/pykafka,thedrow/samsa,tempbottle/pykafka,sontek/pykafka,thedrow/samsa,benauthor/pykafka,appsoma/pykafka,vortec/pykafka,fortime/pykafka,yungchin/pykafka,jofusa/pykafka,benauthor/pykafka,wikimedia/operations-debs-python-pykafka,wikimedia/operations-debs-python-pykafka,appsoma/pykafka,sontek/pykafka,aeroevan/pykafka,aeroevan/pykafka