Fixed an issues on BigDecimal when comparing to NULL