qtscript: fix getObject and typos in its docs.

getObject() should not throw exceptions when
label is not found, but indicate that with null
or undefined return value instead.