I found here (http://screeps.wikia.com/wiki/GetObjectById) why it's like that:
It will only provide you the object if you have visibility in the room, otherwise, it will return null.
Posts made by FunMan
-
RE: Game.getObjectById() returns null when passed the source.id of a source in an unclaimed room.