profile.d: Check whether Qt has Wayland backend available before attempting to use it

This fixes Qt apps when `qtwayland5` package is not installed by letting them use X11 instead.
3 jobs for pureos/byzantium in 7 minutes and 22 seconds (queued for 7 minutes and 39 seconds)