Provide a more useful error message when a dynamic attr lookup fails