Before:
You could press send on the command widget and AtCore would send an empty message of \n\r to the printer. This could cause the machine to stop responding as atcore is waiting on a new ready state if the machine does not send "ok" after the empty command
After:
if there is no text to send there is no emit.