Fixed a major, stack-overflow bug in SharedContentItemResolver.