desktoppackage: Fix errors and code style in Desktop.qml
The most annoying things were missing null checks and mis-used other properties as guards for the following unchecked property access while properties actually do not guarantee to represent their binding's value.