Allows 404 templates and shortcodes from themes/THEME directories.

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