assert that require() has a truthy path; fixes #4541

edit: CLA signed