Don't crash when taskstate is missing for a message

Signed-off-by: Rick Copeland <rick@arborian.com>