fixed more bugs where map threw exception when an attempt was made to find an absent key