Check whether message is set

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>