qtscript: Fix typos in getLabel() and addLabel(). Closes ticket:3920.