Fix issue of throwing error for non matching route on
heroku.