In computing the period of limitation prescribed for any suit or appeal in any case where an application for leave to sue or appeal as a pauper has been made and rejected, the time during which the applicant has been prosecuting in good faith his application for such leave shall be excluded, and the court may, on payment of the court fees prescribed for such suit or appeal, treat the suit or appeal as having the same force and effect as if the court fees had been paid in the first instance.