gdm/util: Make sure error is GError before checking it
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.