Fix 404 pages. After debugging  what feels like 2/3rds of the universe it turns out the issue was just a painfully obvious missing return on the notFound method...