Fix region panel NPE while building advanced panel

[1825]