Make sure we properly validate the return value of udev_device_get_sysattr_value(). It might be NULL for several reasons. (cherry picked from commit 975a9007)