Don't check CSRF token for 404 not found requests

...exist. This can happen for example when a non-GET request will generate a 404 not found response.