[webui] fix crash on configuration save