[PIWEB-10842] fix: Swap conditions
[PIWEB-10842] fix: Swap conditions

- check if there are requested attributes first
- adds None definition only if no specific attributes are requested

ZEISS-PiWeb/PiWeb-Api