System error when using bind variable in ELSE clause of a CASE clause