Fix NPE in PrefixResourceResolver

The ResourceResolverChain can return null, so PrefixResourceResolver
should be skipped in that case.