Catch the RuntimeError that Rails 4 raises when calling attr_accessible.