Fix the bug of testing null date field.