NH: Fixed bug saving entities with not-null foreign keys