Empty console string fix

Do not allow to send empty strings to the console