Added proper handling of error in anonymous record.
Merge pull request #18 from westoque/fix-anonymous-record-error-bug

Added proper handling of model error in anonymous record.