Fix TypeError in node 0.11.14: "Object.keys called on non-object"