Check that content_for is cleared
Prevent duplicate output of error messages

The method content_for prepends content on each call and does not remove the
former content. That is why we need to clear content_for before displaying
another error.
Merge pull request #1558 from opf/feature/8233_fix_error_messages_from_different_objects

[Feature] 8233 fix error messages from different objects