afsmtp: check whether body and subject is set, instead of crash if they are NULL

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>