Try using ServerDisconnectEvent.getTarget() instead.

This is not a completely reliable solution because the field is mutable. I am waiting for SpigotMC/BungeeCord#1170 to be merged before I can endorse it.