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
Reference:
- https://bugs.kde.org/show_bug.cgi?id=403978
- https://bugs.kde.org/show_bug.cgi?id=404109