NPE when deleting an object newly created in session