Fix loading of a text domain from different sources, fixes issue #4045