Fix room autopruning

The `length` property accessed on the room object's keys, instead of trying to access a `length` property on the object.
I wouldn't go as far as calling that "stupid" :-)