Make sure the device is valid when setting the tap button map

Fixes #34

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2 jobs for wip/check-device-settapbuttonmap in 46 seconds (queued for 1 second)