Print an error instead of crashing when a TPM device without
a backend is specified.
Add a test for tpm device with no backend, which should fail
with a parse error.
https://bugzilla.redhat.com/show_bug.cgi?id=961252
(cherry picked from commit 1d96440a060869fb4c26ce35fe165e6e68168885)