Fixed bugs in ResourceIndexLoader and EmbeddedResourceIndexLoader that
would result in the file separator being null if embedded resources are
used.