Fix unguarded self.bug access. r=bustage