Fixes a crash where the qml file was deregistered already because of invalid qml. Task-number: BAUHAUS-394