check to see if cli is null before posting a message to it