Bug 913638 - Don't throw when context has no resources. r=gandalf