Imran Khan gets anticipatory bail