ResourceBasedTextResource more fault tolerant

when there are duplicated ResourceManger, adding the duplicate into the the dictionary will fail. It seems that it can be made to ignore the duplicate without much ramifications.