I think it is becuase the goal keeper pushed it out. TBH with all the s*** about phases of play and that, I wasn't sure what would happen, because the rules as they are now just confuse me.
For me, if he is off when the shot is taken, then regardless of what happens, he is off, but I really don't know the phases of play schite