Test that the parameter to setCustomValidity() is not nullable