Check that IdP names contain content before attempting translation.

getTranslation() will throw an unhandled exception when passed an
empty array, and there's no use in checking for translations of
empty stuff anyway.