Fix NullPointerException in StatefulPersistenceContext when getCollectionEntry() returns null