Update id-validator.js

1. Passing validation if value is null or undefined. The `required` validator should handle these cases.
2. Removed unwanted constraint about ref conditions with array of refs.