Court extends Pakistan's former premier's bail in terrorism case