It's not a bug, you can't access the room object, unless you have a creep or a structure in it.