Add checks for security context so that layout is usable for 404 error page.

Also adding a 404 error page which extends the Sylius layout.