[TIC-Core] Fix: handle error when parsing invalid __KS_URL__