Fix Issue 13190 - Optimizer breaks comparison with zero