Fix crashes in gspawn
Possible fix a crash in searchbar due to invalid TextIters
Fix more crashes in gspawn