LPS-46247 apply the fix to _openDeviceDialog instead of only _onSizeInput because it affects all device dialogs