Prevent infinite loop when HasMap is empty and values() method is valled
Merge pull request #145 from tomhal/maps.js-changes

Prevent infinite loop when HashMap is empty and values() method is called
#KT-3035 Fixed