Prevent Null Command Added History

Prevent a null or empty command from being added to the command history.