[SSSD] [sssd PR#5226][synchronized] python/pysss_nss_idmap: check return from functions