fix updating of Documents with event subscribers

fix for https://github.com/doctrine/phpcr-odm/issues/526