[mini] Fix couple of R4 constant folding checks (#16782)