Integration test TwoVariablesWithCustomVariables with postgresql.

Modified the Generic::castToNumeric function. Earlier, if string
is empty then '0' else column value was used. Now, if string is
empty then '0', else if numeric string then column value else '0'.