Fixes the exception thrown when the provider list for a given language is undefined.

My fault for not noticing this before. Hope that no one is majorly affected by this error!

/cc @MiguelCastillo