Bugfix/assign attributes with nil

ActiveRecord 3.2 allows a nil argument to be passed to assign_attributes. This pull request fixes that.