
The fingerprint device fetching code has a generic error handler, that assumes the passed in error is GError. If it's not a GError it will fail trying to use GError specific methods. This commit adds some validation checking. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3319>