[BUGFIX beta] Fix isEmpty for map
Merge pull request #9414 from mixonic/isEmpty-map

[BUGFIX beta] Fix isEmpty for map