also assign nil in dirty nullable_datetime test. #10237
Merge pull request #10295 from senny/10237_dirty_with_nullable_datetime

Also assign nil in dirty nullable_datetime test. Closes #10237