As explained in the bug report this is maybe not the right fix. It's hide the true problem.
In the case of the bug report, a QQmlJavaScriptExpression generate a value equal to "nan" which
is then converted to an integer, which gives -2147483648
BUG: 403978