Warn on undefined module attributes, closes #963