Return null when there is no dictionary in cache

@dbarashev review?