Make sure the main ui qml file doesn't have breaking syntax error. (cherry picked from commit 13da9c0c)