Allows 404 templates from themes/THEME directories.

Remove the legacy conditional that only checks for the local layouts/404.html file and allow theme defined 404 pages.