Fix JS error in QML code

Message:
[W] qrc:/qml/main.qml:187:45: Unable to assign [undefined] to QString