Fix -Wnarrowing warnings in KDSingleApplicationGuard