JCR-2091: Prevent a NPE on long running tx