v5.8.48 - fix an NPE in the sapling replace detection