Make sure we don't cast an empty string to numeric (#12713).
SQLServer evaluates the CAST condition even if the <> '' condition is false.
Authored by: jplang 2013-01-03
Parent: [r11102]
Child: [r11104]