Fix NPE with OneToMany cascade types