From The Guardian match report: Maybe there is an earthly explanation:
"But after a long, long, long chat between referee and linesman, it’s been given! Janmaat, sliding in behind Sterling, had knocked the ball onto the City man before the ball went it. So Sterling was not offside any longer ... though Janmaat had only made the challenge because Sterling was offside in the first place! Controversy there."