Agencies failed to properly assess risks to boy who died from injuries akin to those in a car crash