Fix the case when reordering shuffle and binop produces a constant.

This resolves PR19737.