Raising an error when nil is passed to update_attributes.