lib: make map_contains recongize null value
Without changing the interface, map_contains is able to tell whether the item exist in map or not.
More about the intension: module
stats use map internally, metric with zero value is not being able to retrieve by
map_contains checks the return value against