Fix Error in checklinks. Closes #5752