Don't send attributes with nil values.

Also, an error message is provided if the number of arguments is
odd, because that breaks the contract proposed by Ohm.