Okay, I found a temporary solution, though you have to do it again and again every time you open Minecraft... You need to launch the client on offline mode then if you want to play online, just turn Wifi back on... Though you have to repeat when you launch Minecraft again...
I hope Mojang is aware of this problem...