This sounds like something for puppet lint rather than puppet core. If added to puppet it could spit out the warning if the lookup of the key resulted in a "not found" and explain is on.
Please verify the behavior using a recent version of puppet lookup —explain and file a PUP ticket if there are issues.