XNAT-3372 Added check for null project and returns HTTP 404 when that occurs.