Check unique rules for null values (fixes #82)