better error message if a feature referenced is undefined