Make sure the dialog can be opened and there is no syntax error. (cherry picked from commit 858114cf)