SearchContext: fix a crash with backward regex search