FIX: undefined object when inputing empty line

`splitCommand` wasn't declared at all if `commandQuery` is empty, leading to an undefined object reference error when trying to determine if the line is `"clear"`.

But it never could be "clear" if it's empty, so maybe it's better to test that inside de `if` body...