An improper integral, the beta function, the Wallis ratio, and the Catalan numbers