Fix being unable to require es6-map on first attempt

Fixes the require issue seen in LightTable/LightTable#1719 by ensuring we have an object before calling Object.keys on it.
@ibdknox Merging tomorrow unless you have a concern