Handled error where when no params were passed no page would render

Now it goes back to index with a message