Minor style fixes and handle not finding the search term

Not finding the search term would result in offset 0, meaning we'd do nothing useful but overwrite the magic numbers. Yeah, that's real useful.