If command line is only whitespace, don't add it to history.