Add null check to uniqueness validator.
Fix code formatting and add test case for null check in uniqueness validator.
Merge pull request #297 from hbj/uniqueness_null_check

Add null check to uniqueness validator.