Fix #144. Handle empty input object for keys.all/map