Fixes #4571: ignore non-string attribute names for AttributeBehavior.