Avoid invalid reads by QML apps, prevents crashes