Added rescue error function to aplication controller for missing document/page