TDQ-9779 avoid NPE when restart studio and directly "generate regex" on
result page.