Fix bug wherein did not return 404 for defined models with missing