The election could have been derailed by a decision of the Lahore High Court, Chief Justice