Fix bug caused by JPA lazy loading which occured after the session had
been closed