This applies a few fixes to ActionToolBar and PrivateActionToolButton when
used in combination with QtQuick Controls 2's Action instead of
Kirigami.Action. It is a more elaborate version of D27638 .
- Properly check if PrivateActionToolButton should be visible
- Use hasOwnProperty for checking property exists and write out everything
- Don't try to use tooltip property that may not be defined