Fix room autopruning

The `length` property accessed on the room object's keys, instead of trying to access a `length` property on the object.
unnecessary external dependency, tho