TDQ-9779 avoid NPE when restart studio and directly "generate regex" on
result page.
Merge branch 'maintenance/5.6'