if payload is nil just assign an empty string to it. fixes #30