Little changes on HTTP 404 and HTTP 500 handling

Now it will falls back properly if no error templates are setup