Set the first value of `id` to 0 instead of -1 if the id is locked
If a new script is created, select the first item instead of some id; there's no point to use the `id` value as an indicator as it's always the first (and only) item in the listview