Fixed NPE in entrySet() when context is null.