fixes #4737 null pointer exception after adding new relation content