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.
Merge pull request #97 from thijskh/master

Check that IdP names contain content before attempting translation.