Added protection against saving an entity, which does not have a repository
Merge pull request #57 from hAdamm/as-bugFix

Added protection against saving an entity, which does not have a repository