Raising an error when nil or non-hash is passed to update_attributes.