[SSSD] [sssd PR#5226][+Changes requested] python/pysss_nss_idmap: check return from functions