Don't rely blindly on the keys 'alt_device' and 'device_uuid'.

This will cause failures on systems not providing these keys such as
FreeBSD.
Merge pull request #12843 from eliasp/mount-keyerror

Don't rely blindly on the keys 'alt_device' and 'device_uuid'.