Revert "QuickSettingsUtil: Remove unnecessary check"

This reverts commit 4b709edb173e73eedfd0a09c640264dbd937cc70.