Former Premier Khan not barred from contesting election: Pakistani court