two kafka fixes

see commit description

- fixes default port handling
- deal with null key or payload