[BZ-995043] fix removal of a BetaNode having a QueryRiaFixerNode as left input