Slice access safety and better bot detection

Was seeing runtime panics and Googlebot wasn't being detected as a bot.