Fixing DefaultEntityManager put method

Entities inserted or updated via the put(T entity) method don't get persisted through a commit after multiple operations if autocommit is set to false.