Added null check since library might return messages where body or sender is null