TIMOB-14521-Do the isNull check first before checking for other types
Merge pull request #4812 from salachi/TIMOB-14521-DBNull

TIMOB-14521-Do the isNull check first before checking for other types