URI/URL should validate only when value is not null and is not empty

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
Validate URI/URL also on update

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>