Fix exception when trying to load resource from same jar twice.