Bluetooth: Fix checking for valid device class values