Making sure we dont try and log a null message