Fix room autopruning

The `length` property accessed on the room object's keys, instead of trying to access a `length` property on the object.
why not plain and simple `Object.keys()` ?