Try to recover from invalid attribute. Fixes #8590