Fixes #2692: IMap methods which uses predicates should check if map store loaded.

Fixes #2692: IMap methods which uses predicates should check if map store loaded.
The code in this PR looks good, but can you add a bit more explanation of what the purpose is of this method?